/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.sbbs.jpa.entity.customtype;

import java.io.Serializable;
import java.util.BitSet;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.Type;

/**
 *
 * @author Mr.fdc <fdc_messenger@126.com>
 */
@Entity
@Table(name = "Product_usertype")
public class ProductWithUserType implements Serializable {

    @Id
    private Integer id;

//    @Type(type = "bitset")
    //org.sbbs.jpa.entity.customtype.usertype
    @Type(type = "org.sbbs.jpa.entity.customtype.usertype.BitSetUserType")
    private BitSet bitSet;

    @Type(type = "org.sbbs.jpa.entity.customtype.usertype.StringSetUserType")
    private String[] strSet;

    public String[] getStrSet() {
        return strSet;
    }

    public void setStrSet(String[] strSet) {
        this.strSet = strSet;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BitSet getBitSet() {
        return bitSet;
    }

    public void setBitSet(BitSet bitSet) {
        this.bitSet = bitSet;
    }
}
